package cn.czg.cms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("message")
public class Message {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long senderId;
    private Long receiverId;
    private String content;
    private String type; // "text", "image", "system" 等
    private Boolean isRead;
    private LocalDateTime sendTime;
    private String conversationId;

    private Boolean deletedBySender;
    private Boolean deletedByReceiver;
}
